{% extends "base.html" %}
{% load url from future %}

{% block content %}

<h3>Configura&ccedil;&otilde;es do Sistema</h3>

<br />

<a class="btn btn-success" href="/conf"><i class="icon-plus icon-white"></i>  Nova Configura&ccedil;&atilde;o</a>

<br /><br />

{% if confs %}
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
              <th>Chave</th>
              <th>Valor</th>
              <th>A&ccedil;&otilde;es</th>
            </tr>
        </thead>
        <tbody>
            {% for conf in confs %}
                <tr>
                    <td>{{ conf.chave }}</td>
                    <td>{{ conf.valor }}</td>
		    <td><a class="btn btn-danger" href="/remover-conf/{{ conf.id }}"><i class="icon-trash icon-white"></i></a>
                        <a class="btn btn-success" href="/conf/{{ conf.id }}"><i class="icon-pencil icon-white"></i></a></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endif %}

{% endblock %}
